import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

// Vant
import Vant from 'vant'
import 'vant/lib/index.css'

app.use(Vant)

// amfe-flexible
// 注意：amfe-flexible 根据设备屏幕宽度动态计算根元素的字体大小，通常 1rem 设置视口宽度的十分之一
import 'amfe-flexible'

// Vue Router
import router from '@/router/router.js'
app.use(router)

// Login
import Login from '@/components/common/Login.vue'
app.component('Login', Login)

// Pinia
import { createPinia } from 'pinia'

const pinia = createPinia()
app.use(pinia)

app.mount('#app')
